package com.ljl;

import java.util.HashMap;
import java.util.Map;

/**
 * 文件头类型Map
 * @author ljl
 */
public class FileTypeMap {

    public static final Map<String, String> FILE_TYPE_MAP = new HashMap<>();

    static {
        FILE_TYPE_MAP.put("ffd8ff","jpg");
        FILE_TYPE_MAP.put("89504e","png");
        FILE_TYPE_MAP.put("474946","gif");
        FILE_TYPE_MAP.put("49492a","tif");
        FILE_TYPE_MAP.put("424d22","bmp");
        FILE_TYPE_MAP.put("414331","dwg");
        FILE_TYPE_MAP.put("3c2144","html");
        FILE_TYPE_MAP.put("3c2164","htm");
        FILE_TYPE_MAP.put("48544d","css");
        FILE_TYPE_MAP.put("696b2e","js");
        FILE_TYPE_MAP.put("7b5c72","rtf");
        FILE_TYPE_MAP.put("384250","psd");
        FILE_TYPE_MAP.put("46726f","eml");
        FILE_TYPE_MAP.put("537461","mdb");
        FILE_TYPE_MAP.put("252150","ps");
        FILE_TYPE_MAP.put("255044","pdf");
        FILE_TYPE_MAP.put("2e524d","rmvb");
        FILE_TYPE_MAP.put("464c56","flv");
        FILE_TYPE_MAP.put("000000","mp4");
        FILE_TYPE_MAP.put("494433","mp3");
        FILE_TYPE_MAP.put("000001","mpg");
        FILE_TYPE_MAP.put("3026b2","wmv");
        FILE_TYPE_MAP.put("4d5468","mid");
        FILE_TYPE_MAP.put("504b03","zip");
        FILE_TYPE_MAP.put("526172","rar");
        FILE_TYPE_MAP.put("235468","ini");
        FILE_TYPE_MAP.put("4d5a90","exe");
        FILE_TYPE_MAP.put("3c2540","jsp");
        FILE_TYPE_MAP.put("4d616e","mf");
        FILE_TYPE_MAP.put("3c3f78","xml");
        FILE_TYPE_MAP.put("efbbbf","sql");
        FILE_TYPE_MAP.put("706163","java");
        FILE_TYPE_MAP.put("406563","bat");
        FILE_TYPE_MAP.put("1f8b08","gz");
        FILE_TYPE_MAP.put("6c6f67","properties");
        FILE_TYPE_MAP.put("cafeba","class");
        FILE_TYPE_MAP.put("495453","chm");
        FILE_TYPE_MAP.put("040000","mxp");
        FILE_TYPE_MAP.put("643130","torrent");
        FILE_TYPE_MAP.put("494d4b","264");
        FILE_TYPE_MAP.put("6D6F6F","mov");
        FILE_TYPE_MAP.put("FF5750","wpd");
        FILE_TYPE_MAP.put("CFAD12","dbx");
        FILE_TYPE_MAP.put("214244","pst");
        FILE_TYPE_MAP.put("AC9EBD","qdf");
        FILE_TYPE_MAP.put("E38285","pwl");
        FILE_TYPE_MAP.put("2E7261","ram");
    }

}
